package com.foreknow.service;

import com.foreknow.entity.Rule;
import com.foreknow.entity.Scheduling;

import java.time.LocalDate;
import java.util.List;

public interface SchedulingService {

    /**
     * 查询排班计划(范围时间，具体个人)
     * @param deptCategoryId
     * @param deptId
     * @param registLeId
     * @param startDate
     * @param endDate
     * @return
     */
    public List<Object> getScheduling(Integer deptCategoryId, Integer deptId, Integer registLeId, String startDate, String endDate);

    /**
     * 新增排班计划
     * @param list
     * @param startDate
     * @param endDate
     * @return
     */
    public Boolean addScheduling(List<Rule> list, LocalDate startDate, LocalDate endDate);

    /**
     * 修改排班计划
     * @param list
     * @return
     */
    public Boolean updateScheduling(List<Scheduling> list);
}
